additions to unit tests for MSVC compatibility

MSVC additions only to unit test software to allow MS compilation
without errors at run time.  Minor MS only additions to script.h and
hash.h  exposed by the unit tests.  Minor change to allow commands and
arguments in any order to the command line when invoking the daemon.