code compilable with old SDK
fixed TTF loader