fix socket bootloader for newer avr-libc
fix hba/hexinfo compilation with g++