Add Windows/FreeBSD support