Set USE_CLI to ON by default

* Build all the dependencies only if USE_CLI is ON
* Set all the library as static