Compilation dark magic (for Windows)