Added JNI code
Improved windows build