fix ioapi_mem win32 compile errors