Updates to autotools for library detection