Don't forget to SetLastError() on disconnection

Otherwise if the last error was a ERROR_NO_DATA we have no indication that
the pipe has been closed.
Added define guards for _rotl and related bit rotation functions, which collided with function definitions in x86intrin.h
Merge pull request #1906 from mrd-cloudbase/master

Added define guards for _rotl and related bit rotation functions
Merge pull request #1902 from hardening/pipeFix

Don't forget to SetLastError() on disconnection
Merge branch 'master' of github.com:FreeRDP/FreeRDP