Move defines from stdafx.h to CMakeLists.txt