The necessary includes are already in test_qof_CFLAGS; better to change that to test_qof_CPPFLAGS so it applies to both cc and c++ than to duplicate it.