Blackberry: Use -O2 instead of -O3 to prevent crashes with GCC 4.8.1. Update ffmpeg.