Build targets before test.