linking library works