Fixup some windows stuff and implement a Posix loader.