Updated autogen script to be more sane in multiarch env