Fix building dependencies for AppImage

Authored by wojnilowicz on Aug 30 2018, 10:32 AM.