Fixed the library linkage