Fix compiler flags on Windows