Fix compilation on OSX Mountain Lion