fixed some warnings for windows