fix configure options:

1. fix --enable-json
2. fix --enable-graphviz