build: move tests/seek_test.c to libavformat and reuse generic build rules