fixed makefile utf8 and cleaned warnings.

fixed TM code, to show correctly on PS3