Fix build.gradle files (build fails due to https://github.com/libgdx/libgdx/issues/1730)