fix mac complie error