firs steps to make it compile under 10.8.x again