Fixed build errors with Gradle 2.0 (fixes #22)