Begining changes for VS 2010 compatability

1. replaced <thread> with boost::thread
2. replaced std::atomic with boost:atomic

TODO:
1. Replace range based for loops with BOOST_FOREACH
2. Implement a variadic template macro using the preprocessor