sample channel: fix build

sample channel is static and not dynamic therefore dynamic
should be set to FALSE in add_channel_client_library
winpr-file: harden GetNamePipeFileDescriptor

Ensure that GetNamePipeFileDescriptor returns an error
if the supplied handle isn't a named pipe.
Merge pull request #1834 from bmiklautz/fix/misc

Misc small fixes