OS X Maverick fixes.

Sucks.