updating so jvm plugin can compile in arm

This *should* work for all arm versions so far and still works for i386/x86_64
Merge pull request #411 from thekad/master

updating so jvm plugin can compile in arm