-Updated the compiler flags to error out on warnings and fixed compiler warnings.
- Upgraded compiler to C++11 support and updated some iterators.