Fix library dependency problem