Applied part of v8 svn r13542 to fix build on OSX 10.7.

Details: http://code.google.com/p/v8/source/detail?r=13542