Many many changes in order to get libHPC building with
gcc 4.6. I need to do this to get it working with CUDA
correctly.