Add support for static constructors and destructors