fix linux errors