Adding Mac Retina support and fixed debug stats in Mac platform

It would be nice to have this included in v3 before the official release.