Set --enable-multi-IM and corresponding flags