Fix library dependencies