Fix linux build errors