Compiling GEOS 3.5 errors

I’m getting compile errors on the make step for GEOS 3.5 using PGI 16.5 on x86-64 Linux Haswell:

libtool: compile:  pgc++ -DHAVE_CONFIG_H -I. -I../../include -I../../include/geos -I../../include -DGEOS_INLINE --no_using_std -c LineIntersector.cpp  -fPIC -DPIC -o .libs/LineIntersector.o
"LineIntersector.cpp", line 273: error: more than one instance of overloaded
          function "geos::algorithm::isnan" matches the argument list:
            function "isnan(double)"
            function "std::isnan(double)"
            argument types are: (const double)
  	if ( ISNAN(p1.z) )
...
36 errors detected in the compilation of "LineIntersector.cpp".

All of the errors have the message “more than one instance of overloaded” with the “isnan” function. Thus far I’ve tried configuring using:

./configure --prefix=/path/to/install

and:

./configure --prefix=/path/to/install CXXFLAGS=--no_using_std

From searching the forums and documentation I’ve found that the “–no_using_std flag” should fix the issue of the compiler not knowing which function to use. Even with the flag it still hits this problem. Any ideas on how to proceed?