Fixed EventLoop bug and added LOGD implementation for windows