Fix linking to external udt