[bindings] fix Java on old swig versions
add lua support