Gazebo: rearrange dependency list, add optional ffmpeg dependency

ffmpeg is required for OpenAL support, so add it as an option.
Also rearranged the dependency list.