CMakeLists.txt: fix python builds and doc building

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>