Fix build for OS X.

This is a small fix for OS X build.