Avoid non-fatal assertion warning on Mac platforms.