Fix compiler error on Mac