simplify static asserts

Simplify static asserts to make them compatible with older compilers and MSVC 2013