Modify slightly build CharMat and Eigen on Linux