Fix a typo in configure.in

funcion => function
Check for set_escdelay() function in configure
Add additional check for set_escdelay() presense
Note fixing of missing set_escdelay() issue
Add utils/str/wcstolower() function
Cache key_pair value in a var in find_notation
Don't use wcs[n]casecmp() functions

They are not available on all target systems.

Just assume that all notations are in lowercase and convert input string
to lowercase equivalent manually.  This also can be considered as speed
optimization!

Thanks to Russell Urquhart.
Add --with-curses-name=NAME configure option

It specifies name of curses library file, which is ncursesw by default.
Note with-curses-name configure option in docs
Note shared libraries requirement in INSTALL file

Thanks to Russell Urquhart.
Merge branch 'fix-osx-10.4-build'