Provide a usleep-alike wrapper for nanosleep

Since usleep isnt available with XOPEN 700, which is needed for strnlen.

Note: nanosleep needs POSIX >= 199309L, which is implicitly defined by
_XOPEN_SOURCE, see man feature_test_macros(7).

TODO: Can we just move away form useconds_t all and do
all calculations with struct timespec (guess not)..