Make use of a few new features in TinyGo: * Functions and globals in header files are supported. * Static functions are supported. This allows us to remove workarounds specifically used for the lack of support for static functions.
This will be needed eventually, so add them now already.
This is required for adding S140 support. It relies on the following TinyGo PR: https://github.com/tinygo-org/tinygo/pull/942