[win/osx] update socket compat, windows disk writing