Updated for 10.8 deployment target

Hi

I did update of code for 10.8 deployment target. And it can be builded for 10.7.

Thanks