fix swift library dependency