libfreerdp-core: added orders buffer size approximation functions