tools: cmake: link librt if needed (FS#381)