fix mac building error