Add a CMake build script for the PATH solver.
Fix a compile error in path.