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