Various fixes.

 * NAT-PMP external port was checking vs MaxUint32 (Mostly harmless
   since main always passes in valid input).
 * NAT-PMP duration check didn't compile on 32bit targets due to size
   of int.
 * getGateway() on Windows should actually work now.