Accidentally used a GLib function that was too new for the version we have in Windows. Changed the call to g_ptr_array_new_full to g_ptr_array_sized_new followed by g_ptr_array_set_free_func.