Make it work with versions 2, 3 and 4 of the toolchain.