add support for the automatic java optimization in winemode