build: unbreak on OpenBSD

On OpenBSD clock_gettime(2) is part of libc and there is not librt, so
add an according check.