Add conditional compilation for WebRequest.PreAuthenticate.

Fix issue #481.