making dependency on javafx optional