add --enable-shared option for configure