Preprocess version and configuration headers with cmake
Remove unused precompiled header files
Fixed broken build
Fixed .gitignore
Removed useless message
Don't use typed enums for flags (attempt to fix gcc bug)