Import some stuff for older autoconfs

Signed-off-by: Sharif Olorin <sio@tesser.org>