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
Merge pull request #3838 from fritsch/aefixes2

AESinkALSA: Workarounds for formats don't belong to the sink
[repos] cosmetics: use temporary variable for the add-on being processed
[repos] update the broken status only if we don't have a newer add-on installed (or in the database)
[repos] cosmetics: indenting
[repos] process only the most up to date version of add-ons across all repositories
Merge pull request #3865 from uNiversaI/master

Typos fix try 2
Merge pull request #3674 from bavison/faster_window_lookup

Implement a window ID cache
Merge pull request #3842 from Black09/directoryprovider

Add setArt() for python listitems
fixed: Incorrect length calculation for keywords from IPTC tags in which could result in a buffer overflow.
Merge pull request #3792 from Black09/auto-scrolling

Add auto-scrolling for containers
[remote keymapping] map the BACK button to Back in fullscreen (rather than smallstepback in fullscreenvideo and lockpreset in visualisation)
RFC: [addons] install dependencies prior to installing the real thing. Fixes #13918
bump GUI ABI to 5.0.0 due to recent skin core changes
update Touched skin
FIX: [stereoscopic] fix 3D support for libstagefright and ios
Merge pull request #3779 from BigNoid/not_so_bright_white

[Confluence] Slightly less bright white which is easier on the eyes.
Revert PR#3231 and make "visualisation as screensaver" behave as having fullscreen toggled (so it won't trigger screensaver state at all)
ActiveAE: drop useless IsCompatible call on sink