[common] Remove glib code from map.[ch]