Use C++11 static_assert ...

...instead of hackish (and warning yielding) metaprogramming.