Fix #42 and #26

This patch fixes connection with mstsc 7600. It also desactivate NS codec.
It also fixes bugs when the frontend client disconnect uncleanly.
Merge pull request #7 from hardening/fix_26and42

Fix #42 and #26
Merge branch 'master' of github.com:bmiklautz/FreeRDS