Allow max memory to be set using JVM_MX when invoking the robovm script.
Set the max heap size to 4G when invoking the compiler.