Build luajit as static library in Windows
Use _fileno in MSVC instead of fileno
Fix msgpack build for MSVC

- Pass the generator to CMake
- The argument -fPIC does not exist in MSVC
Link against static runtime with MSVC