Pure JNI and C version.  Intercepts open, close, and connect and prints a message from Java indicating that the JVM was called.

Uses interposition and works for multi-threaded applications.  Mac OS only.
Removed debug message about attaching the JVM to the current thread