Merged new Win 8.1 interfaces from David. Fixes #4.