gitignore: fix and update
BuildFreechart: if-statement
lib/CMakeLists: include BuildFreechart cmake file