external - add glib as submodule and build with it
build - use link-time optimisation to reduce binary size