Add option for static library creation to glib formula.