add some lib checking to configure