Added a bool type
Converted source to C89
Removed unused C flags
Converted build to CMake