Used static_assert for static assertion

Yay for C++11! static_assert is available since GCC 4.3.

Fixed warning when compiling with GCC 4.8:

src/utils/mathutils.cpp:53:18: warning: typedef ‘float_must_be_32_bits’
locally defined but not used [-Wunused-local-typedefs]