fix linux build errors