Change hash_map and hash_set to std::unordered_.
Check for GCC version and adjust flags.