Fix shell crash for stable MongoDB with Clang

Users compiling stable MongoDB with Clang (Mavericks) are experiencing a shell crash that is fixed by this patch.