Fix for osgearth_viewer stats hangs on MacOSX

This fixes the osgearth_viewer stats hangs on MacOSX. Tested with 10.8. This is also an issue on osgviewer.