Fix JavaFX issues and update pom and building instructions