Fix build on Mac