Revert "Fix sst_dump and reduce_levels_test compile errors"

This reverts commit d8f00b4109e3df10be56141f3ff3ba9b0d10f585.
Revert "Don't compile ldb tool into static library"

This reverts commit e296577ef64deac036a275a1a4c0d6172cfa42df.
RocksDBLite

Summary:
Introducing RocksDBLite! Removes all the non-essential features and reduces the binary size. This effort should help our adoption on mobile.

Binary size when compiling for IOS (`TARGET_OS=IOS m static_lib`) is down to 9MB from 15MB (without stripping)

Test Plan: compiles :)

Reviewers: dhruba, haobo, ljin, sdong, yhchiang

Reviewed By: yhchiang

CC: leveldb

Differential Revision: https://reviews.facebook.net/D17835
Fix compile issues introduced by RocksDBLite
When creating a new DB, fail it when wal_dir contains existing log files

Summary: Current behavior of creating new DB is, if there is existing log files, we will go ahead and replay them on top of empty DB. This is a behavior that no user would expect. With this patch, we will fail the creation if a user creates a DB with existing log files.

Test Plan: make all check

Reviewers: haobo, igor, ljin

Reviewed By: haobo

CC: nkg-, yhchiang, dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D17817
Fix compile issues when doing make release
Fix Mac OS compile
Close DB at the end of DontRollEmptyLogs test