Add workarounds to configure script to mimic automake more

This is a patch to address concurrencykit/ck#15