Add sample build script for patch. Fix ncurses script.