patch configure script to avoid build failure; some functions don't exist in our old libcurses, but the toolchain doesn't return an error when trying to link a program that has missing functions, you actually need to try to run it to notice the problem, so the script thinks that they exist and tries to use them, only failing later on a missing prototype.