CMake and stdafx improvements

CMake now supports all build types. Defaulting to release with only -O1 because -O2 causes a crash in clang.
Headers that were uncommon were removed from stdafx. No need for them to be there.