Add GC/Wii specific optimizations and fix ccache