__APPLE__ is not Apple, use PERL_DARWIN instead.

See hints/darwin.sh for details.