Fixed issue when linking library.