Sma/rework cmake module

Hi,

Here is a short series reworking CMake module files.

It now uses CMake primitives instead of hard-coded (absolute) paths, which was badly breaking cross-compilation.

Regards,
Samuel