Enabled thread support for cmake
Added build[0-9] to gitignore

I sometimes use build2, etc. to test a new build without obliterating
the current one.
Added class cache test script
Added threads test script with synchronization

This will very soon make its way into Simulation::run