Add functions for getting the Surface jobject and setting the surface size with an existing JNIEnv