Check happens at build time, so flash size config may need to be changed. Also fixes MD5_OPT undefined warning, closes https://github.com/espressif/esp-idf/issues/1867