fix SharedMemory for WinCE