Added -D_REENTRANT