Improved spin_wait storing a long system tick variable instead of OS_highres_count_t, which can be quite big on POSIX systems. Removed __int64 constructor and replaced with static_cast to fix MinGW errors.
Removed unused typedefs