Enhance hash function to be compatible with Clojure 1.6