[bindings] Fixing Lua and Java bindings for old SWIG versions

As SWIG version 2.0.7 fixed a bug in std_string.i files provided for Java and Lua languages (thanks @paulfitz for finding out), we should provide correct files to be used with older SWIG versions. This should solve issue #83.
I am not sure if the copyright notice I added is correct, could someone check it?