Add STATIC_ASSERT to base.h

And change the definition to avoid a warning with gcc 4.8.