Use autoload on required files

This was supposed to be part of the last pull request (#2).