fixes compiler warnings for windows