Fixed how cmake gets installed. Also, fixed a minor issue with file installation using cmake.