more malloc replacement, and typedefing a glib_string from a unique_ptr