[GH #897] Fix duplicate declaration of int_cb_D4 is invalid in C++ warnings

Do not declare them twice. Note that static and extern vars both do not work with our nci.
Merge branch 'rurban/nci_test-dupldecl-gh897'