Use the preprocessor to detect whether hash_map is available.
Merge pull request #414 from SaberUK/insp20+hashmap

[2.0] Use the preprocessor to detect whether hash_map is available.