Adds gradle options to prevent out of memory problems