fixed compile error when eigen3 not installed

solves #2007