link properly against librt