Okay, I tried to do that, but it results in a never ending stream of errors like this:
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/stl_algo.h:4787:3: error: template with C linkage
template<typename _RandomAccessIterator, typename _Compare>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/stl_algo.h:4824:3: error: template with C linkage
template<typename _RandomAccessIterator>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/stl_tempbuf.h:211:3: error: template specialization with C linkage
template<>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:642:3: error: template with C linkage
template<typename _IIter1, typename _IIter2, typename _BinaryPredicate>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:646:3: error: template with C linkage
template<typename _IIter, typename _Tp>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:650:3: error: template with C linkage
^C^C^C template<typename _FIter1, typename _FIter2>
^~~~~~~~
^C/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:654:3: error: template with C linkage
template<typename _FIter1, typename _FIter2, typename _BinaryPredicate>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:658:3: error: template with C linkage
template<typename _IIter, typename _Predicate>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:662:3: error: template with C linkage
template<typename _IIter, typename _Funct>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:666:3: error: template with C linkage
template<typename _FIter, typename _Generator>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:670:3: error: template with C linkage
template<typename _OIter, typename _Size, typename _Generator>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:674:3: error: template with C linkage
template<typename _IIter1, typename _IIter2>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:678:3: error: template with C linkage
template<typename _IIter1, typename _IIter2, typename _Compare>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:682:3: error: template with C linkage
template<typename _FIter>
^~~~~~~~
^C/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:687:3: error: template with C linkage
^C^C template<typename _FIter, typename _Compare>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:692:3: error: template with C linkage
^C template<typename _IIter1, typename _IIter2, typename _OIter>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:696:3: error: template with C linkage
template<typename _IIter1, typename _IIter2, typename _OIter,
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:701:3: error: template with C linkage
template<typename _FIter>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:706:3: error: template with C linkage
template<typename _FIter, typename _Compare>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:711:3: error: template with C linkage
template<typename _IIter1, typename _IIter2>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:715:3: error: template with C linkage
template<typename _IIter1, typename _IIter2, typename _BinaryPredicate>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:719:3: error: template with C linkage
template<typename _RAIter>
^~~~~~~~
^C/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:687:3: error: template with C linkage
^C^C template<typename _FIter, typename _Compare>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/stl_algo.h:556:3: error: template with C linkage
template<typename _InputIterator, typename _Predicate>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:692:3: error: template with C linkage
template<typename _IIter1, typename _IIter2, typename _OIter>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/stl_algo.h:580:3: error: template with C linkage
template<typename _InputIterator, typename _Predicate>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:696:3: error: template with C linkage
template<typename _IIter1, typename _IIter2, typename _OIter,
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:701:3: error: template with C linkage
template<typename _FIter>
^~~~~~~~
^C/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:706:3: error: template with C linkage
^C^C template<typename _FIter, typename _Compare>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/stl_algo.h:601:3: error: template with C linkage
template<typename _ForwardIterator, typename _Predicate>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:711:3: error: template with C linkage
template<typename _IIter1, typename _IIter2>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:715:3: error: template with C linkage
template<typename _IIter1, typename _IIter2, typename _BinaryPredicate>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:719:3: error: template with C linkage
template<typename _RAIter>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:723:3: error: template with C linkage
template<typename _RAIter, typename _Compare>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/stl_algo.h:639:3: error: template with C linkage
template<typename _InputIterator, typename _OutputIterator,
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:727:3: error: template with C linkage
template<typename _RAIter>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:731:3: error: template with C linkage
template<typename _RAIter, typename _Compare>
^C ^~~~~~~~
^C^C^C/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/stl_algo.h:668:3: error: template with C linkage
template<typename _InputIterator, typename _OutputIterator, typename _Tp>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:735:3: error: template with C linkage
template<typename _BIter, typename _Predicate>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/stl_algo.h:700:3: error: template with C linkage
template<typename _InputIterator, typename _OutputIterator,
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:739:3: error: template with C linkage
template<typename _RAIter>
^~~~~~~~
/home/john/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/7.2.1/bits/algorithmfwd.h:743:3: error: template with C linkage
template<typename _RAIter, typename _Generator>