[win] Fix default value of vertical sync setting from disable to always.
libdvdnav runs dvdread-config to update CFLAGS and LDFLAGS with libdirs, includirs and libraries but wrongly with locations on the buildsystem. this breaks crosscompiling. We fix this with providing a own 'dvdread-config' file which dont inject /usr/include and /usr/lib in our *CFLAGS.
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
[pvr] show gaps on epg timeline grid
FIX: TAB 3D fixup for ios & libstagefright
Revert "[fix] When the screensaver kicked in on windows with the xbmc window minimized, it would never open.

This reverts commit 4df1056b27449bdca2a5f1dd4ca41cf6ae52be4d.
Causes GUI rendering problems.
[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)