fixed some warnings on windows