seperate c++ dll from java env