Fix global leak of events and zlib

The terminating semicolons on the prior lines cause the events and
zlib variable to be global variables. Which is not exactly what was
intended here.