copy library out of JAR and load from tempfile