Fix $this in closure for PHP 5.3