work towards making libjulia combilable with a c++ compiler (required for MSVC)
remove redundant typedef and reorder includes in codegen.cpp

Note that extern “C” is not required for julia.h as it is already used
inside the header
Merge pull request #5379 from tknopp/MSVC

RFC: Compiling libjulia with MSVC compiler