Fixed conflicting library dependencies for cross version builds.