CMake project should enable pthreads for Mac OS X by default.
CMake project should install sdl2.m4.

Fixes Bugzilla #1809.