Makefile fixup for building on OSX with brew
std::isnan instead of isnan