Fix build on OS X

* Fix build on OS X
* Stop ignoring deprecation warnings.