database/leveldb: fix build