Fix build when EXTPROT_DIR/LEVELDB_DIR are defined.