Lazy initialization of statics.
Fixing some warnings.