OS X build fix.

Thanks to Timothee Cour for reporting the issue.