Normalized line endings
Use unicode version of win32 APIs
Fixed compilation on C++98 / Visual Studio
Added necessary link library for win32 target