Add to Ofront path variable %WorkDir%, some optimization.
Adapt XDev to be compatible with modified Ofront.