some minor fixes for the windows build