Fixed make inconsistently linking 'shared' lib