staticjni: avoid duplication of callbacks

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Merge branch 'master' of https://github.com/xymus/staticjni into a