fix missing link
fix broken static library generation