Clean up unnecessary and catch-all version(Posix) blocks, prematurely separated version(OS) declarations, and version statements with catch-all else blocks that can be defined more narrowly