You should compile with -Tlinux and add the Linux headers from the Linux version. I once tried to compile a windows binary on a Linux os and that didn't work. I don't know if it works.