Fix. Use intptr_t to file handle on Windows (#26)

Tested on MS VS2008(x32) MinGW(x32) and MS VS2012(x64)