compiler fixes for windows