Fixed Win32 Support

Mostly Timer / thread fixes