fixed state mask for winnt/posix systems