The attached patch fixes two problems:
1) A bug in ns_jpegsize that causes incorrect
values to be returned when the jpeg file includes a DHT
(Define Huffman Table) marker - 0xC4. This was
previously reported as bug #685055 but only fixed in
the core, not in nsimage.
2) A problem with the Win32 compile (no arpa/inet.h)