improve type library compiler