add --enable-static-linking option for configure