Warnings fixes (well.. the UPnP was actually a crash fix.)