Check if window-system is mac or w32 before trying to create a frame on tty.