fix library dependencies