Fix missing directory when build from fresh tree
Fix i686 platform build

It turns out that the build error was a result of repeated builds that
reuse the same repository directories.

Add a phony make target `clean-repo` cleaning up intermediate files.