av_d2q: Add a special case for |value| > MAX and |value| < 1/MAX

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
configure: check for nanosecond precission stat

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