Changes to enable cross-compilation on linux of both windows and linux binaries