Fix library dependencies.