fixes for shared_memory (atomic ops, plz), added windowsx.h to platform inclues