ENG-6037 fix mac cc compiler error