Fix problem with permission in class static initializer
Merge pull request #11 from stuartwdouglas/master

Fix problem with permission in class static initializer