Port all examples, most tests, and wtperf to Windows

Added windows_shim to emulate most posix functions

Porting format found several issues.