[CMake] added support for ALL_PKG_FLAGS needed by headercheck