Move elf_loader_t to module.c and link it into the injector

Ptrace injection will use the ELF loader to map DR into the injectee.

module.c is general ELF utility code, while loader.c is tied to the
private loader.  Therefore module.c is more appropriate to link into
the injector.

Additional NOT_DYNAMORIO_CORE ifdefs were needed to make the link
succeed.

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

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1838 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
fix broken non-short-suite builds

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1839 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Fix the STATIC_LIBRARY build for gcc-4.7 ia32

The prefix for these special thunks changed from __i686 to __x86 between
gcc4.6 and 4.7.

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

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