I tried for an embarrassing amount of time to get this to work, but couldn't.
For my own sanity I've given up, but left these files in place in case anyone more knowledgeable can get them working.
If you want the original Optifine.jem files, get in touch as I should still have them.