change cookie type to void * to fix problem on 64-bit hosts