Fixes to get the unit tests working again...

- Events are no longer created with a name as it caused namespace issues
- Fixed error in Thread::getCurrentThread() under windows. Method now returns
  the correct handle for the current thread