OS X impl update

Here are some modification for OS X ready for review.

Basically, I reverted to non-ARC since it didn't work as I expected. The memory usage was climbing when recreating windows without being detected as leaks by Apple's tools. That's the biggest change here. See commit message for more details.

Other minor changes are explained in commit log as well.