Fix deprecated use of nan() method.
Merge pull request #1 from larsyencken/master

Fix deprecated use of nan() method.