Fixed compile to set class pointer for code objects and CConstructModule case to use it.