Add DLL building support to autotools scripts