Fixed some bugs, improves speed for autoload for PHP since version 5.3.2 onwards