Use glib memory allocaters where possible.