Add compatiblity for some older ffmpeg versions
Define DEBUG and _DEBUG on debug build
Merge pull request #55 from BtbN/ffmpeg

Add compatiblity for some older ffmpeg versions