Modify files to build with Gradle