Fix SOFA config file for CLIs

A few things here:
 - Add SOFA_EXTERNAL_LIBRARY_DIRS to point to the external libs directories
so the CLI can link to them.
 - Remove the "d" qualifier of the debug libraries
 - Simply list the librairies by name instead of location