minor fixes
move common function to common place
turn off magic: do not add c-fast plugin switches if it was explicitly specified in argv