cppcheck: upgrade to version 1.66 on travis

Also, fix all warnings that are found by new cppcheck version.
Merge pull request #138 from toxeus/updateCppcheck

cppcheck: upgrade to version 1.66 on travis