Fix incorrect calling convention.
Fix compilation error when defined WIN32_LEAN_AND_MEAN.
Fix error on copy constructor from difference template parameter.
Initialize InputStream class.