Use POSIX, not glib functions where obvious for asprintf and similar