Fix thrust-sort on Windows