Fix compiler flags for Windows