Merge pull request #7 from acreloaded/cppcheck

Cppcheck fixes
Moved to C++11
Updated build targets to use c++11