optimizations for the windows build