Add extern "C" to definitions of four win32_ functions