[win] Fix default value of vertical sync setting from disable to always.
Avoid using CSettings to create a blank guisettings.xml for a fresh profile.  This causes a segmentation fault as documented in issue #14747.

As the file is created 'fresh' on first login of the profile, there seems to be no consequence in not creating before hand.
Fix compilation error due to missing include.

This fixes compilation error due to missing header.

 SDL_anigif.cpp: In function ‘int AG_LoadGIF_RW(SDL_RWops*, AG_Frame*, int)’:
 SDL_anigif.cpp:293:37: error: ‘malloc’ was not declared in this scope
   gd = (gifdata*)malloc( sizeof(*gd) );
                                     ^
 SDL_anigif.cpp:418:11: error: ‘free’ was not declared in this scope
   free( gd );
           ^
 make: *** [TexturePacker] Error 1
Fix compilation error related to removed structure field by ffmpeg.

ffmpeg removed reference_dts field in struct AVStream.

Related ffmpeg commit:
  http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=2ba68dd044ca8fc591139c05563840f546a9c0c0
FIX: TAB 3D fixup for ios & libstagefright
[pvr] fix: hide loading pvr data progress dialog if error occured in pvr clients
[mysql] table names should be case sensitive
[musicdb] remove duplicated trigger statement (already present in v39)
Fixed karaoke lyrics delay when the whole words are assigned the same time.
Fixed broken karaoke import due to change in songview
[musicdb] combine triggers so we have a single trigger per table - mysql requires this
platinum: fix parsing of upnp:actor in PltMediaItem
Work around groovy failure with some JRE-s

by compiling some .groovy files instead of interpreting them
Add comment to workaround
Merge pull request #3907 from rbalint/groovy-workaround

Work around groovy failure with some JRE-s
ActiveAE: Fix some print cosmetics in ActiveAESink
ActiveAE: Don't compare m_frames in CompareFormat (it's given via samplerate anyways and zero for silence)
FIX: [droid] handle usb storage
Merge pull request #3908 from fritsch/aefixes

ActiveAE: Fix Fixed Mode and some cosmetics
dvdpalyer audio: fix delivering the packet in wrong format