fix compilation errors.