Add MaxPermGen option to gradle wrapper

This is so that anyone (including someone with no prior GRADLE_OPTS) can build XD properly