Various preprocessor manipulations to package foundation-wii properly