Add all dependencies to the source tar

Fix #1011
Add an argument to force using the standard rocksdb lib

The usage of the new configure script is as follows:

`./configure --with-rocksdb`

Fix #742