Fix the build when __APPLE__ is defined.