fix pascal library generation