OSX compatibility
emulate unordered_map.reserve() for platforms that are missing it