Apax to acquire Epicor and Activant