Fix gradle build

Note that you have to make sure to checkout the submodules as well. Fixes #56.

Also, it seems like a lot of work maintaining three build systems, maybe just pick one? (not sure gradle really is the best one...)
Done.