Fix build on darwin

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