Fix compilation under OS X 10.7