Add conditional librt dependency check and pkg-config lib include.