Fixed some build errors.