Fixing compile errors on Windows with the isnan() function.