hpacker: Fix compiler errors

Updated CItdPacker to use new classes
hpacker: Fix segmentation fault in TreeNode::add
data: Add MIME database entry for itd and hpk