[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.
[AML] Fix pts error correction logic
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
[WIN32] changed: set background mode when minimized. prevents screen saver to kick in.
[musicdb] cosmetic: shift GetSong
[musicdb] cosmetic: default values
[musicdb] cosmetic: delete unused function
[musicdb] cosmetic: missing whitespace
[musicdb] cosmetic: fix some constness cosmetics
[musicdb] cosmetic: tidy up musicdatabase.h
[musicdb] cosmetic: whitespace removal
[musicdb] cosmetic: remove unused parameter from GetSongFromDataset
[musicdb] cosmetic: use ExecQuery for UpdateSong
[musicdb] cosmetic: adds an UpdateSong() wrapper for public use, and use it in JSON-RPC
[musicdb] cosmetic: tidy up the song table definition and GetSongByFileName
[musicdb] cosmetic: have (Update|Add)Song should take the constructed artist string rather than the vector of artists
[musicdb] cosmetic: tidy up songview
[musicdb] fix: scanner can't be stopped