Using map and set instead of their variant to simplify build on most of the platforms