CloseRequested event fixes

Changed the meaning of the return value of OnCloseRequested. If it returns
true, the window will be closed. The event args now has an AllowClose
proeprty. Implemented for the mac backend.