Fix build for new hash implementation and libcollections