Build libolsrd.so for JNI link.