[RocksJava] -WShadow improvements

Minor corrections to resolve -WShadow build problems with RocksJava code.
Merge pull request #387 from fyrz/RocksJava-WShadow-Fix

[RocksJava] -WShadow improvements