CMakeLists wasn't working, so pulling out conditionals for now
Add const keyword to pi
Fix signed/unsigned mismatch warning
Removed unused function to stop warning and added an undefined symbol