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.
Merge pull request #40 from leedm777/patch-1

Fix global leak of events and zlib