fix build bug mac OS