Fix linkage with librt.