Correct windows compilation errors