Fixed final and abstract class declaration in gen-stubs