Exclude Qt moc files from cppcheck.

Also remove preprocessor #error warnings as many of them are triggered by the -D_STATIC= option of cppcheck which seems to overwrites other #defines