Changed linking of libav libraries to correct order