Updated compiler versions for some templates, fixed compiler versions on platformio.ini files, and set optimization flag -O3 on all templates except Arduino Uno.