Replaced bad GetTicksCount64 emulation with better one.
Merge branch 'master' into for_viboes_review

Conflicts:
	include/boost/thread/win32/thread_primitives.hpp
Added pthread_mutex_timedwait() emulation for Mac OS X.
Tested Apple only fix works on Linux.