Solves most of compilation errors on Windows