Ensure the destroying order of static variables

To fix issue #52
if you make the above a pointer, you don't need to do this.