Fix up usage of cppcheck, enable samples build