WIP: Fixed SOFA dependencies issues.

Can initiate Sofa session from a CLI without issues.