More JNI fixes.

- Fixed postUICallback so it works correctly when targeting Android 4.
- Improved the way "GetEnv" JNI method is handled, made this work: https://gist.github.com/DanielUranga/4725501