Fix #451: Build broken on OSX.

Problem:  Build breaks in OSX if macports ncurses present, due to
          header conflict involving 'term.h'.
Solution: Modify include search order.
Changed testdir/Makefile to use Makefile wildcards instead of SUFFIXES
Replace mch_rename and vim_rename with libuv
Restore vim_rename
vim-patch:7.4.169

Problem:    ":sleep" puts cursor in the wrong column. (Liang Li)
Solution:   Add the window offset. (Christian Brabandt)

https://code.google.com/p/vim/source/detail?r=4e3a9dd25d428e7c08ed401afc244972e27e08e6
Extract memory.c from misc2.c
Try to find all other instances of vimrc and gvimrc and prefix them  with n
Possible string literals that have to be replaced
vim-patch:7.4.170

Problem:    Some help tags don't work with ":help". (Tim Chase)
Solution:   Add exceptions.

https://code.google.com/p/vim/source/detail?r=8122eab8fcdbbdaac62dfbf7c6458cb3e6f46b04
Removed not defined prototypes in os_unix.h

  * reset_signals, vim_handle_signal:
    signal handling was rewritten, not defined anywhere

  * related to x clipboard handling, not defined anywhere:
    * {setup,start,stop,clear}_xterm_clip
    * stop_xterm_trace
    * clip_xterm_{own_selection,lose_selection,request_selection,set_selection}

  * related to XSMP (x session management protocol):
    * xsmp_{handle_requests,init,close}
Remove unused define
remove DO_AUTOCHDIR
remove MB_{IS,TO}{UPPER,LOWER}
remove pchar from macros.h
remove reference to BROKEN_TOUPPER
Rewrite `mch_call_shell` on top of libuv

- Rename to `os_call_shell`
- Rewrite the function using another entry point to libuv event loop
Add valgrind helper and debug boilerplate