add namelink handling to build_generated