Check if -lrt is required for nanosleep, as is the case on Solaris.