Feature/autoload

here is a PR for better autoloading support in php versions lower then 5.3

this PR is fine