Use a loop to export vars.
This also fixes adding duplicates to .MAKEFLAGS with fmake, which was a bug present before recent changes.
With hat: portmgr