Added compiler flags to build code using c++0x.
Replaced boost versions of function and shared_ptr with std versions.
Replaced typedef with use of auto key for iterator.
Converted simple Makefile build into simple CMake build.