include: Change  twain.h to use LONG/ULONG for Win64 compatibility.

Also fix the compiler warnings introduced by this change.
5 files changed