Add libtool support (allows ./configure --enable-shared and --enable-static)