Added resizable window support for Mac.