Bugfix: Include config.h in sha2.c first
Workaround bug in PDCurses wresize

If the current cursor position fell outside the new window dimensions, it would be moved to just-outside - which is still outside
We can workaround this by checking if it is outside, and moving it inside if so
Merge commit 'a25dcc1' into bfgminer-3.2.x
Merge commit '71adb95' into bfgminer-3.2.x

Conflicts:
	miner.c