Fix signed vs unsigned mismatch caught by MSVC. Add a return after pthread_exit() because MSVC doesn't know it's a no-retturn function. Modify main.c to provide CPU detection for Windows when compiled for Win32.