Fixed building samples on windows (UNAME reported FreeBSD instead of cygwin so pass parameter in samples: target)