Add guards to check Eigen version

Random walker needs Eigen::Sparse module, which is available since
version 3.1.0.