Don't build with Lwt_glib if we're not building with GTK
Fixed distribution detection in unit-tests

Was detecting host platform distribution, not mock test distribution,
which broke the unit tests on Fedora.

Reported by Tim Cuthbertson.