Add the CMake build system.
Remove PI (<cmath> provides M_PI).