fix compiler warnings on windows build