Switch to Gradle build system