Fix for a Mac port bug - core dump on startup.