Added a cEvent::Wait() with timeout.
Update CMakeLists.txt
Merge pull request #1510 from mc-server/TimedEvent

Added a cEvent::Wait() with timeout.