Fix compilation error for OS X 10.5