add compiler support for static attributes