Fixed some compilation errors.