Fix check for asprintf.