Use binary flag for fopen() to fix file operations for win32
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index dfd88b7..12577f7 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -726,7 +726,7 @@
 			}
 
 			/* copy archive to device */
-			f = fopen(appid, "r");
+			f = fopen(appid, "rb");
 			if (!f) {
 				fprintf(stderr, "fopen: %s: %s\n", appid, strerror(errno));
 				goto leave_cleanup;
@@ -1026,7 +1026,7 @@
 			}
 			free(copy_path);
 
-			f = fopen(localfile, "w");
+			f = fopen(localfile, "wb");
 			if (!f) {
 				fprintf(stderr, "ERROR: fopen: %s: %s\n", localfile, strerror(errno));
 				free(localfile);