Fix Tempfile binary mode on windows

This makes geminabox work on windows.

I have not tested this on other platforms than windows. Also not tested on other ruby versions than 1.9.3p392, but I expect binmode is supported on all ruby platforms.