Fix for cross-compiling on linux/arm and the rest of the architectures