Fix linkin of library