Fixed compilation of c++ testresources classes