Make comptaible with PHP 5.3

 - remove anonymous use of $this in closure
 - switch to old array syntax