rename Thread in OsThread
implement CE_INLINE
rename Thread in OsThread
clean #define for Win
minor fixes
last push before architecture rework