[GHC] #13940: Reduce duplicate implementations of argument handling on Windows