fixed cross compiling on linux