Fix linking of test programs with libintl or not.