misc fixes in leveldb

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <norluk@luxoft.com>
Change-Id: I4ed5b8dd635a182035cb81bfed6b872522d5d77e