Cppcheck: fix configuration for cppcheck 2.17
Cppcheck 2.17 now includes the GTest TYPED_TEST macros and this clashes with our own definition leading to failures in the dev3/4 nightlies. Move these macros to a separate cfg file and only include them if Cppcheck < 2.17 is used.
cc @elmsheus