better return values form clock_nanosleep
move clock_ functions to common code
add clock constants
allow skipping clock_ tests as OSX has no implementation