Refactor CMake

* Add C language to CMake

* Remove CPack commands

Currently, we do not provide a GUI installer for BAMM, so the CPack
commands are not needed. This may be provided in the future.

* Remove unnecessary package-related files

* Simplify version specification

* Find and link the pthread library for g++