Hex conversion templates made more portable

- Added boost integer type selection
Removed not needed operators on dht classes