buildscripts & gcc_build: Cosmetics.
patches/ffmpeg: Add a patch to fix detection of *time_r.
buildscripts: Change how to handle pthreads.