Fix static ctor order bug that appeared with clang 3.5.