loader: suggest to set crate type explicitly

Now loader suggests to set crate type explicitly if it founds file with
name similar to crate name, but different extension.

This commit adds warning if loader found static library instead of rlib
or dylib.
Closes #14416.
@alexcrichton ok, I'll try to do that. My solution is indeed too rough to use.