Changes for JavaFX on JDK 1.8.