(cake) Fix runtime error with MacOs 10.7