Apply ClassWrap transformation immediately

This allows ClassWrap to work cross platform, as well as avoiding any pre-processing problems.