i#1063: system library replacement: rpcrt4.

Add infrastructure support for replacing rpcrt4 routines.

Add implementation of redirect_UuidCreate().
Add unit test for redirect_UuidCreate().

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1857 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Add a copy of ninja.exe for convenience for a better Windows build experience

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1858 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Add a -core option to genapi.pl and return non-zero on usage errors

This makes it possible to run genapi.pl with a working directory other
than dynamorio/core.  This greatly simplifies running the script in
google3.

Review URL: https://codereview.appspot.com/7225072

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1861 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Move vmareas logic into new core/native_exec.c file

Future cross-platform logic for re-entering DR and maintaining
control on module transitions will live here, while ISA and
object file dependent code will live in x86, linux, and win32.

Review URL: https://codereview.appspot.com/6850053

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1862 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
i#1063: kernel32 non-Local memory routines

Implemented memory-related kernel32 routines other than Local*().
Added unit tests.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1863 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Fix bugs in redirect_RtlSizeHeap and redirect_RtlReAllocateHeap, both found
by redirect_Local*() testing.  These may explain some -privlib_privheap
bugs we've seen in the past.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1864 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
TI_GET_SYMNAME must be freed with LocalFree, as Local* redirection proves

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1865 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
i#1063: kernel32 Local*()

Implemented the full set of Local*() kernel32 redirection routines.

Added unit tests, which ended up catching bugs in redirect_Rtl*Heap()
routines (to be committed separately) that may explain some
-privlib_privheap bugs we've seen in the past.

Reviewer: it should go without saying, but a reminder to please look at the
man pages and confirm this is a faithful implementation.  Some of the
documentation is a little confusing.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1866 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Avoid "Command line warning D9025 : overriding '/MT' with '/MTd'"

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1867 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6