fixed compile issue with validate_leveldb.py