Fix some compilation errors.