C++17 support for Arduino ESP32

The information in this thread is outdated, please see ESP32 C++17 toolchain missing std::optional - #7 by maxgerhardt.