Fix compile failure on OSX 10.8.