Move some build packages to common.mk