copy over latest LwjglHeadlessCanvas code