fixed  out-of-tree build

mainly config.h related