On linux check for a new enough system version of miniupnpc.  Fall back
to building the version in the externals if it is not available.
Fix a couple of compiler warnings that have cropped up.