fixed asprintf warnings for Linux