Fixed a problem with the cmake install scripts and mingw.
Cleaned up all templates and added an Erase() to HashMap.