patches from K Millar for unmodified Eigen