add libtool support