Fixed API related build error.