Fix Intel/Linux compile failures, and reinstate some old workarounds for broken std::fpclassify implementations.