Better cross-platform support for compilation