FIX build on MacOS X

Conditions for linking librt were inconsistent in one point.