Move MinGW special casing for shared lib creation to configure.