Turn statics into consts.

This still won't actually fix the build until num is fixed upstream.