Added a (hopefully) cross-compiler is_nan function to the debug file