This did not help with my particular issue. For some reason I'm getting those cross-compile errors. Are there any CFLAGS you use? I've tried building w/gcc-4.6.1 and gcc-4.4.6.
No. I only needed to set these 2 variables to make it work on Ubuntu 11.10
