Added -mwindows when WIN32 is true.
Completed OAuth2 implementation, still to test it in the refresh case.