Proper librt linking on platforms that need it