Restructure to ensure successful mingw compilation, stdio seems very popular, too

Backport of r892159 from trunk.

Restore getpassword == getpass_r hack for older Novell NDKs.
partial revert of r892141

Backport of r892909 from trunk.


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