unix: don't clobber errno in signal handler
build: fix up WIN_SRCS
Rust-specific: disable pieces of windows build that don't exist on mingw.