configure: Support --with-curses=FOO to look for curses implementation in libFOO
Merge commit '1e02306' into bfgminer-2.10.x
openwrt: Use --with-curses=ncurses to avoid ncursesw dependency
openwrt: Move Makefile into a bfgminer subdirectory to avoid symlinking issues