Make print_hexl function write to stdout rather than using printerr