compile upstream packages