examples/commands-leveldb: Fix compilation errors