some Java bindings fixes (fixes Debian build problems)