Fix hpcmp2 to build on a redhat linux cluster

Just a few minor modifications had to be done. I am now testing on Ubuntu, to make sure that things still work there.