fixed compilation error in absense of eigen3