Add MaxPermGen option to gradle wrapper

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