Optimize mime type loading depending on what glib version we have
Some makefile/configure cleanup