Add _XOPEN_SOURCE #define. This is necessary for (s)random(), which are XSI