compile fixes and bugfixes for Win32 mode
bugfix in bvh4_builder_hair, number of threads was passed wrong to bvh->init()