freerds: fix shared memory segment permissions
freerds: fix possible out of bounds coordinates when encoding region during a resize
Merge remote-tracking branch 'awakecoding/master'