Look for crates in LIBDIR, provided by --libdir option

Fixies #11671

This commit changes default relative libdir 'lib' to a relative libdir calculated using LIBDIR provided by --libdir configuration option. In case if no option was provided behavior does not change.

We can remove --libdir support for windows. They probably do not need this, as anyway they have problems with LD_LIBRARY_PATH.