Fixed c++ samples under cygwin.
Updated user guide to mention cygwin support.