fix headers for isnan to avoid compile issues on some g++ installs