Fixes to get this port working with the JavaFX e4 renderers.