Fixed the windows build on release mode