Resurrected %*CUSTOM_LIB on JVM.
Merge pull request #192 from donaldh/custom-lib

Resurrected %*CUSTOM_LIB on JVM.