removed unnecessary lib linking and headers