S.Korea accepts flawed 'comfort women' deal