Android mason: Changes needed to get JNI to link

This adds the JNI files to the build system.

Can someone with experience of the build system check my work, and make any tidy ups needed?