Converted Makefile target collect to .stage/collect.
Reset collect state after build.
Added more Makefile stages to speed up the build process.