Some fixes related to switch to system leveldb

Some fixes to the switch to system leveldb in master including removing the git submodule and fixing RPM and deb build.