dynconfig: Use replace.h and memory.h directly, not via includes.h