Valama: Recompile after mode change