jni lib should not link dynamically as this breaks loading on macs (and other mac fixes)