stdafx: move out some uncommon includes
CMake: Improve to support build type. Default to release.
Merge pull request #410 from xsacha/master

CMake and stdafx improvements