[telegram-desktop] Use weak dependencies only on Fedora >= 24.