Fixing build error on Mac