Fix: cleanup configure.ac and add missing headers/functions

Signed-off-by: David Goulet <dgoulet@ev0ke.net>