configure: add -lrt to libavutil when needed for nanosleep

This is similar to 7d97511e13ef30cd99bae0e36400de055b72918d

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>