Fix Linux build errors