Add System Versioning Preprocessor Macros.

Copied from https://gist.github.com/alex-cellcity/998472.