fix some compilation errors.