Fix compatibility for OS X Maverics.
Merge pull request #24 from devxoul/bug/mavericks

Fix compatibility for OS X Maverics.