Isnan

This PR adds isnan(). Was tested on Windows/X86. Your comments are welcome. 

Philippe
We're going to switch to C++11 in a few months probably. We should be able to find and remove this #if 0 then. Maybe change the comment to TODO: enable this once we use C++11.