build: non-x86: Only compile mpegvideo optimizations when necessary