Implemented resolve for MinGW and Win32
Fixed newlines