Fix configuration problem and remove duplicate library.