Fix cppcheck on OS X