Fix build on OS X 10.8