Fix header file for cygwin
Fix segfault in strcpy