minimal correction for ios/win32 compatibility