fix build in for openjdk8 and jfx