fixed hamming distance on linux