Minor
Unused macros
Set CXXFLAGS, OBJCXXFLAGS with --debug option, too
Add --profile option
Cache the MATH table per font

Removing the global table cache caused a big performance hit (~30% for
math heavy documents), so we now cache the MATH table.