small fixes. still need to fix huff_table.c