Add collectforbuild command and buildstatic --nocollect option