fix compilation of dynamics regression tests