Fixed compile all functionality.
Merge pull request #182 from pelson/compile_all

Fixed compile all functionality.