i#1054: Find DR's library bounds in a STATIC_LIBRARY build

This ends up reducing the number of STATIC_LIBRARY ifdefs, which I like.
is_in_dynamo_dll() still returns false for static builds.

Fixes issue 1054.

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

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

Support multiple client configs from within a function:

+ Use two global properties, one with the listdir in the name and one with
  the project name in the name, for "one-time-only" global changes with
  different scopes.

+ Do not remove "-m32" from cflags on Linux.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1824 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
DrMem i#1105c#3: cwd is a global var in the scope of the including project,
so a prefixed name is required for robustness: cwd => DynamoRIO_cwd.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1825 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
Merge branch 'master' into fix-clang