compat: add some more thread locale constants
lua dkjson: use us_tostring() to fix locale issues with decimals

This only fixes encoding but we don't use decoding anyway.

Fixes #8854
doc: New fortune :)
avcodec: pass aligned picture dimensions to video output

This enables direct rendering for H.264 software decoding.
Input clock reference: bump maximum gap to 60s

Some APE files can have a single packet duration of up to 30s
Is there even a hard limit in this format, or can packets be longer?

Previous gap limit was an arbitrary 22s, written in a way reminiscent of
the MPEG 90kHz clock, which does not make sense anymore since reference clock
in all our demuxers use our own 1MHz clock.

Also explicitely use CLOCK_FREQ
extras/tools: fix ragel build with clang on OSX Mavericks
extras/tools: bump cmake version to current stable and add a patch fixing build on OSX Mavericks.
auhal: cosmetics
auhal: respect changes in default audio device during playback (fixes #9266)