The OTLegacy tool takes an OpenType font produces an OpenType font with precomposed characters (such as é) by applying any OpenType lookups to trying to decompose Unicode characters into their components. It is called by saying otlegacy <input file> <output file>

It is possible to download the binary, but you may, of course, download the source as well.