The comment in the Makefile says why the problem is ugly. The fix is ugly because as is there's no easy way to patch the offending file.