Fixes shared library linking (XCC)