fix pgi compilation
fix llvm compilation