ref #77 fixed compiler errors on linux

- replaced deprecated hash_map with unordered_map
- fixed some type warnings