fixed windows compilation errors