Added S compilation and paths to linking step