Improve out-of-source build by fixing a few paths relatively to CMAKE paths and using a path through a cmake variable