Added NSDate and NSEvent functions to handle events in the glutin crate