Fix build config for leveldb, snappy.
Simplify build process.