fix auto adjust the class to MRC or ARC

Hi, Yann! In order to convenient use for developers, I add the automatic switching mode between MRC and ARC.
So, the developer doesn't need configure the compiler flags for it.