Fix for Java 8. Closes #11

I was looking at open issues I had on my GitHub and saw this simple fix that needed doing, so I couldn't resist. My local fork now compiles perfectly with Java 8 (oraclejdk8) on Travis CI.