Refactored library extraction / loading code
nativeGetLong/Double behaves like Android native code
fail fast when sqlite connection is used from bad thread