Only link librt on non-Darwin (Mac) machines.