Hmm, setting _X_OPEN_SOURCE breaks everything