Enforce C linkage everywhere

in order to compile Julia with a C++ compiler (specifically MSVC)