fixed issue with library linking