Added initial JNI functionality

Updated windows and unix build files.
JNI only works on windows for now!