Added the -D_POSIX_C_SOURCE=200112L to allow easier compilation on non-Linux platforms.