(cmake) Resolve minor errors with finale executable name
(cmake) Improve the way the libs are linked