Fix OS X 10.8 build