Fedora fixes

There are some other issues (such as turbojpeg not existing in Fedora), but I haven't gotten to use libjpeg (which is libjpeg-turbo in Fedora).