Win port updates

A collection of unit test fixes, plus the ability to create a Windows installer binary.