add --enable-static support to autoconf