libfreerdp-core: improve server-side capabilities parsing