Closes https://github.com/espressif/esp-idf/issues/4303
Also add some cmake dependencies to rebuild mconf if its source files change.