Implement nanosleep.
Merge pull request #912 from waywardmonkeys/implement-nanosleep

Implement nanosleep.