code compilable with old SDK
fixed TTF loader
Merge branch 'master' into tags-master