Fix build on darwin

Authored by osa1 on Mon, Nov 26, 3:27 AM.