get address of jvm functions in a way which works on both osx and linux, without needing to know the name of libjvm