Merge non-APR-Util bits of r1523521 and 1523604 from trunk:

r1523521:

fix various compile errors and warnings (in testucs.c)

r1523604:

Fix build of aprapp/libaprapp (APR_DECLARE_STATIC was misplaced).

Support building test suite against either static or dynamic libs.
  (Requiring separate builds is ugly, but so is creating a more
  complex directory structure or naming convention in the build 
  directory and possibly having to modify test program source to 
  find child programs.)

Build additional test programs.

Add running the test suite to the build system.
  (Using the "NMake Makefiles" generator, use "nmake test" to run
  silently, with output logged to some files, or "nmake check" to
  run with test output logged to the console.)


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1531155 13f79535-47bb-0310-9956-ffa450edef68