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