Fix a compile issue on OS X