Move code around

Mutex (and Windows.h by extension) are fairly isolated now.
8 files changed