Fix check for shared library using libtool info, instead of assuming extension