Enable 64-bit Windows compatibility

Adds a Visual Studio 2010 solution and fixes errors and some warnings caused by architecture-dependent types.
Notably there are still warnings in FDStream since there is no way to preserve the semantics of the function easily, but if you're reading/writing over 2GB of data you are probably doing it wrong anyway :)