Fix build on OS X

#156 and #121 were not tested on OS X.

* Fix build on OS X
* Test for OS X 10.9
* Stop ignoring deprecation warnings.