setup.py: Fix regressions for detecting mupdf support.

Test mupdf versions with and without SSL support.

Change-Id: Ib93eeb19d96945211b4ccb1fe37b07642082ebb4
Reviewed-on: https://iffwww.iff.kfa-juelich.de/review/108
Reviewed-by: Christian Felder <c.felder@fz-juelich.de>
Reviewed-by: Josef Heinen <j.heinen@fz-juelich.de>
Fixed a linking order mistake that caused GR3 jpeg export to result in a segmentation fault

Change-Id: I5d2d137fd551644d2c2a951ffa9f7d21243ef031
Reviewed-on: https://iffwww.iff.kfa-juelich.de/review/110
Reviewed-by: Josef Heinen <j.heinen@fz-juelich.de>