Autotools improvements

I wanted first to add few remaining bits before starting the discussion in the mailing list

Another topic I'll open will be about zmq compatibility.