Fix windows warnings.

Update regression tests to be a little more flexible when comparing images.