Add PHP 5.3 to the build on travis ci.
Fix the lazy factory for php 5.3.
Fix an example to work with PHP 5.3.
Merge pull request #37 from jakzal/php-5.3

Fixes for PHP 5.3