fix a couple build errors.