Heroux-Devtek posts Q3 earning gain