Fixed Export Bug and Added IsDebugOn to the plugin system

I added IsDebugEnabled to the plugin system to determine if debugging is on and to allow OpenGL to know when to draw.

Fixed a second Export but in SmartGetFieldArray2DInt.

Still need to fix the capturing because when disabled, it disables graphics button and debug button. I can do that later.

EDIT: Not sure why this pull doesn't show the changes to SmartJNI.cpp
EDIT: Smart's destructor crashes the JVM twice. Applet.stop() and Applet.destroy() causes this.