Merge pull request #4387 from Tolriq/swig_javahome

Correctly use JAVA_HOME when generating SWIG bindings
Merge pull request #4360 from rbalint/debian-build-fixes

Use NULL from cstddef
Merge pull request #4290 from dgburr/fix-swig-memory-leak-master

Fix memory leakage in python bindings