Remove `_stdcall` on non-Windows platform
Remove `__declspec` on GNU C++
Use compiler-defined `_WIN32` instead of user-defined `WIN32`
Add missing standard C library headers for old GCC
Use C-string for `ifstream` (C++11 required for `std::string` param)