Do not use static-libgcc flag on Darwin

Pinging @vcunat.  This fixes #2982.