Fix linux build and quality test