Fix compile on Mac