Add possibility to build with or without CLI features

Export library
Set USE_CLI to ON by default

* Build all the dependencies only if USE_CLI is ON
* Set all the library as static
Merge branch 'export-lib-windows-rebased'

# By Chrystel Juan
# Via Chrystel Juan
* export-lib-windows-rebased:
  Set USE_CLI to ON by default
  Add possibility to build with or without CLI features