class wrapper : updated for the new TTMatrix work in Core.
various build fixes