Better includes (less global include dirs and more explicit includes) for the Data Explorer and some other minor changes by using cmake-targets instead of global includes and definitions.