Build fix for MacOS (SnowLeopard) by mr_hyde

:: upstream revision 10803 ::