Install shared libraries in bin/ and lib/ on Windows MinGW/cygwin

Those libraries can be found by scanning for SO_MAJOR_VERSION in their
Makefiles.
Install shared libraries in bin/ and lib/ on MSVC

This is the MSVC part of the previous commit, to ensure that install is
completely consistent with the multiple methods supported.