fix template cpp not compiled in ipad retina