add autoconf patch, see https://gist.github.com/anonymous/5071073, thx BlueDarknezz