Fix global LDFLAGS.
Try to simplify scripts to avoid double work.
Add ncurses configure flags for future shared builds.