fixed build errors.