Fix for windows build