cmake: fix BSD link, only link with librt if it exists (closes #75)
version: detect OpenBSD for version string (closes #76)

Fix from Brad Smith
Merge with stable