fix gcc build warnings on win32