Fix closure $this for PHP 5.3