Microsoft patched 'NSA hack' Windows flaws before leak