fixed win32 build, fixed android crash introduced with previous commit