fix linkage for glib < 2.17
update gitignore