Replace ptr containers in the Windows backend