fix the link error for lib