Travis: install eigen and json-c with homebrew for osx job
fix CustomKernel_unittest.cc when eigen is not available