windows: implement exception handling

R=rsc, brainman
CC=golang-dev
https://golang.org/cl/4079041
13 files changed