Run Cppcheck and fix stuff
Support debug and release build modes