Another attempt at fixing library linking