make sure some constants are defined (out)
updated patches.  another ffmpeg workaround for theora