Add macros for feature checks
Add printing of detailed timings

This touches everything because "config.h" MUST be included first.