Workaround cross-compilers fussiness regarding constant initializers.

Closes #5505