libfreerdp-core: improve server-side primary order header construction