Also call nanosleep on android

Change-Id: I33c2c202cf895d49732e30c07e6dec58af035fdc
Merge pull request #117 from awong-dev/fix_sleep_for

Also call nanosleep on android