refactor extern(Windows) on 64 bit Windows to make clear it has C linkage