Changed Java callback methods so they can be called on a thread different than the thread glfwInit was called on.