hash: misc fixes
cmake: added dlib into test build
cmake: added encoding into test build