build: perform SASL checks manually.

So many systems are completely broken with regards to pkg-config and
libsasl (let alone libsasl2). So let's just do all this junk manually.