configure check headers and library