Linux build fixes