Make trait's impls consistent for unix/windows