Make SW_BUFFER_SIZE to be 2K on OS X & Typo fix