Wraps CPP classes to behave during compile.