Build both 32- and 64-bit JNI libraries.
Compile targeting Java 1.8.
Use architecture-dependent JNI library.