fix debug build error in mac