Update CMake configuration (and a few includes) to get p3prc compiling.