Add standard method for enabling mfpu and mcpu code optimization
diffmerged from CM