Compiling direct on the N900 works great and allows use of compiler flags which are probably not supported by QEMU.