Fix up some variables overwriting. Fix linker flags. Will test on nagfor and ifort.
Fix up some variables overwriting. Fix linker flags. Will test on nagfor and ifort.

SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack