Merge the r1501656 group from trunk:

 * r1501656, r1501702
   Fix the ability to build Debug Build with BDB FS on Windows.
   Justification:
     Our build system should work properly.
   Votes:
     +1: breser, stefan2
     +1: rhuijben (I prefer the trunk code that performs a real bdb install
                   check, but it might help in some dev environments)


git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.8.x@1536049 13f79535-47bb-0310-9956-ffa450edef68