Fixed SETARGV_OBJ for VS2013
Fixed some issues when compiling with VS2013
Added lossy GIF code from pornel's fork