Added includes of config.h, miscfn.h