Additional option to compress the build log before attaching to the email

Using java.util.zip libraries to compress the build log before attaching to the email can save MBs each email.

I've changed the "attach build log" entry to an optionalBlock so that the "compress build log" option only shows up when relevant.