Adds gradle options to prevent out of memory issues