I don't know of any GNU/Linux system that would not have asprintf(3), but just in case, let's provide a replacement function for it.