Fix underlying type for vectors/sets.
Add CMake file for tools.