Build cleanups round2
Created by: evelikov
Another round of configure.ac cleanups which removes a handful of the unneeded type/function/header checks.
Note this is based against the earlier series, although (barring the trivial conflicts) can be applied independently