Added windows support for shared memory and SharedArray.