Tidy up 5.3 issues

Removed gzip usage for older versions of PHP where the context was
not properly passed. Also removed use of lcfirst.

Resolving some comments from #78