refactor autoloader

Refactor the autoloader to work with `hiphop php`