Restored STGM flags to the way Microsoft writes them