This fixes the build problem that I described in #212
(NOTE: There's actually one other un-#if-guarded usage of the variable "fUseUPnP" in this file, but that one doesn't seem to cause build problems, for whatever reason. So I just added #if guards around this usage, to make the change as minimal as possible.)