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/trunk@1523604 13f79535-47bb-0310-9956-ffa450edef68