Fixed check for clearsync headers, autoconf clean-up.