add glib variant, fix Makefile
fix Makefile