New Zealand PM apologizes for mosque attacks 'failings'