initVariant() is now declared as external "C" function.

See #2080 for more details.