Fix some compile warnings.
Retina display support.