Fixed platform detection.

The static_assert shouldn't appear on GCC 4.7.