GH-6: allocate jpr_root using the correct integral type.
Add CMake build support