Fix std::isnan portability via CPLIsNan(). Closes #28.