configure: Drop unused helper function test_cflags_cpp()