Use C preprocessor to support conditional in qstrdefs.h

Not sure this got really cleaner than doing it in Py... If this breaks, it's harder to debug.