Pgi fixes

Fixes for PGI Compiler on titan.
Removes C++11 usage, some fortran changes.