Fixed error where compilation can't find Javafx

Without this, building using the latest Java (1.7.0_51) creates hundreds of errors (tested on both linux and windows) relating to the absence of javafx. This hacky solution seems to solve the problem.