Disable SSE1 code on Windows x64
diff --git a/transform.c b/transform.c
index 7a6cbd2..027139a 100644
--- a/transform.c
+++ b/transform.c
@@ -1163,8 +1163,8 @@
 		profile->output_table_b = precache_create();
 		if (profile->output_table_b &&
 				!compute_precache(profile->blueTRC, profile->output_table_b->data)) {
-			precache_release(profile->output_table_g);
-			profile->output_table_g = NULL;
+			precache_release(profile->output_table_b);
+			profile->output_table_b = NULL;
 		}
 	}
 }
@@ -1226,13 +1226,16 @@
 			    else
 				    transform->transform_fn = qcms_transform_data_rgba_out_lut_sse2;
 
+#if !(defined(_MSC_VER) && defined(_M_AMD64))
+                    /* Microsoft Compiler for x64 doesn't support MMX.
+                     * SSE code uses MMX so that we disable on x64 */
 		    } else
 		    if (sse_version_available() >= 1) {
 			    if (in_type == QCMS_DATA_RGB_8)
 				    transform->transform_fn = qcms_transform_data_rgb_out_lut_sse1;
 			    else
 				    transform->transform_fn = qcms_transform_data_rgba_out_lut_sse1;
-
+#endif
 		    } else
 #endif
 		    {