Fix linux errors