configure: Workaround buggy autoconf versions
Bugfix: Fix curses-less build
Merge commit '9c53e98' into bfgminer