Added windows support for shared memory.