fixed up some compiler warnings, and made this header file to be used by the jni class - see comment in jni/MGWrapperImpl.c