Add 'extern "C"' to headers for C++ compatibility
core: Clear tile layer and sprite regs/mem at init
tile_registers.h: add palette field