Fix missing #include "config.h" in some files