fix jni getLongSockopt

A fix for issue #285