CMake build system files.
Changed some if()s and added documentation.
Use CMAKE_CXX_COMPILER_ID.
Added git short hash as version option.
Fix FRED2 build.