The attached patch adds a few prototypes and does a typecast, thus removing some harmless but annoying compile warnings on Win32.
cheers
andrew