message: Windows copy_file fixes
diff: #ifndef WIN32
  #include <unistd.h>
  +#else
  +#define WIN32_LEAN_AND_MEAN 1
  +#include <windows.h>
  #endif
  #include <string>
  @@ -368,19 +371,15 @@ bool copy_file( const char *filename, const char *newfilename )
  if ( !filename[ 0 ] || !newfilename[ 0 ] )
  return false;
  + if ( !strcasecmp( filename, newfilename ) )
  + return false;
  #if defined( WIN32 )
  - if ( !strncasecmp( filename, newfilename ) )
  - return false;
  -
  - success = CopyFile( filename, newfilename, FALSE );
  + success = !!CopyFile( filename, newfilename, FALSE );
  #else
  - if ( !strcasecmp( filename, newfilename ) )
  - return false;
  -
  char buf[ BUFSIZ ];
  int source = TEMP_FAILURE_RETRY( open( filename, O_RDONLY, 0 ) );
  int dest = TEMP_FAILURE_RETRY( open( newfilename, O_WRONLY | O_CREAT, 0644 ) );
  