Misc Windows-adaptions

Signed-off-by: Atle Solbakken <atle@goliathdns.no>