build: fix test for ancient GCC bug