avformat: fix apm makefile dependency