Fix cross-compiling on Linux