fixes 467, add support for building with gradle

Added support for gradle as i am not using eclipse any more, still works with eclipse.

You need to use gradlew.bat or gradlew depending on your environment, if you just want to use the system gradle version you need to make sure its at least 1.9