cppcheck compilation fails with g++4.6.3. Patch from mavik1