toolbox: Replace _Static_assert by STATIC_ASSERT
math: Add static assertions of struct sizes