Add '-D_X_OPEN_SOURCE=500' to $CFLAGS

The GNU C Library declares 'random' and 'srandom' under this feature
test macro.