Fix linking on OS X, which does not have librt.