Add matrix build support.