Add logging and don't crash if we can't detect the -march=native equivalent flags.
cache the detected -march=native flags.
Fix the logger.