Revert "Exception: Remove obsolete GCC version checks."

This reverts commit b2221bf92df40339d0df536c7f0498dc370848d6.
Revert "Exception: Remove obsolete MSVC version check."

This reverts commit 73687f1f0f5a8762bb38d8dad4c25e0934105214.
Revert "Remove obsolete MSVC check from pragma guard"

This reverts commit f6c1ebece04f5804e423976729e6027dfc563f24.