added native methods necessary for requesting computer restart permission
fixes #193