Fix CMake detection of hashset/hashmap.