fix compiling errors due to deleted MatrixBase

I think this error occurs if OpenMP is enabled.