Rewrite macro STATIC_ASSERT to avoid recent GCC warnings

Reference:
  http://www.pixelbeat.org/programming/gcc/static_assert.html