Correct the approach to std file handles by simplifying the approach and taking better advantage of apr's now-proper support. Already verified by Randy Kobes and Tom Donovan Sync to trunk r580433