Fix build regression on Mac