Replace constants.h with buildsystem defines
cmake: Replace Windows specific if(MSVC) with if(WIN32)
Merge pull request #128 from lclc/constantsh

Replace constants.h with buildsystem defines