g_ptr_array_insert is already defined in GLIB 2.18, remove it