librt related configuration cleanup

Add conditional librt dependency check and pkg-config lib include when not on host os *darwin*.