Use TARGET_NM instead of NM where appropriate.