Fixing library dependencies