Fix windows Makefile for new socket abstraction.
Add dummy default for NDMP port.
Fix NSI build.
Fix memory leak.