fix build errors for Mirra.