Updated gitignore.
Added --no-as-needed linker flag to the Python builds.

This flag makes sure that the DT_NEEDED entries for libncursesw
and/or libtinfo is included in the readline extension module, in
case the libreadline.so is underlinked.