core: add missing declaration of "environ" (fix compilation on Mac OS X)