Create SPOOLES_WINTEST

windows support and bug fix for 32 bit platforms