Cleaned up libjvm to use DynamicLibrary.

Updated the code to leverage stout/dynamiclibrary.

Review: https://reviews.apache.org/r/21598