Make the source code compile with Intel and PGI compilers