add fake itoa definition
ignore deprecation warnings
fix minor compatibility errors
use -fpermissive flag
remove weird PALLETE variables