A Plugin may extend a ThirdParty class?

Hi, I did some modifications to PhysX classes while extending Engine classes on source code. Everything works fine, but I would like to build a plugin, so I don’t need to remake it for every new release. Is that possible?