Fix Linux build issues