fix compile error for Webkit < 1.9

thanks to 4e976623 for catching this and providing the fix