please add a 

```#include <shogun/lib/config.h>```

even before the HAVE_EIGEN3 define (you will get build errors otherwise