Reimplement constructor and destructor calling using compiled wrappers.