fix build on newer mac OSX (10.8/10.9)