fixed issue in add library macro with package libraries