Adding some #define, #ifndef, #ifdef to disable the detection when needed.